<#include "/component/pagination.html" />
<script>
	$("#checkAllGroups").checkall({itemName : "groupId"});
	
</script>
<table class="table table-striped table-hover">
<thead>
	<tr>
		<th  width="3%" scope="col"><input
			id="checkAllGroups" name="" type="checkbox" value="" /></th>
		<th  width="14%" scope="col"><@spring.message code='lunGroup.name'/></th>
		<th  width="14%" scope="col"><@spring.message code='lunGroup.creator'/></th>
		<th  width="16%" scope="col"><@spring.message code='lunGroup.createTime'/></th>
		<th width="14%" scope="col"><@spring.message code='lun.qosType'/></th>
    	<th width="14%" scope="col"><@spring.message code='lun.qosRead'/></th>
		<th width="14%" scope="col"><@spring.message code='lun.qosWrite'/></th>
		<th  width="16%" scope="col"><@spring.message code='lunGroup.luns'/></th>
	</tr>
</thead>
	<#list pager.list as item>
	<tr <#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
		<td class="c"><input name="groupId" type="checkbox" value="${item.id}" /></td>
        <td>${item.name!}</td>
         <td>${item.username!}</td>
        <td>${item.createTime?datetime}</td>
        
        <td>	<#if item.qosType=0>  iops
		
                     <#else>      <@spring.message code='lun.bandwidth'/> 
                     </#if>
		</td>
	        <td>${item.qosRead}</td>
	        <td>${item.qosWrite}</td>
        
        <td>
        	<a href="javascript:void(0);" onclick="Group.showLuns(this);"><@spring.message code='button.view'/></a>
        	<a href="javascript:void(0);" onclick="Group.showLuns(this, 'other');"><@spring.message code='button.add'/></a>
        </td>
    </tr>
	</#list>
</table>
<@pagination/>
